/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.purchaseorder.mapper;

import com.jeeplus.core.persistence.BaseMapper;
import com.jeeplus.core.persistence.annotation.MyBatisMapper;
import com.jeeplus.modules.purchaseorder.entity.PurchaseOrder;

import java.util.List;

/**
 * 买入订单MAPPER接口
 * @author w
 * @version 2021-03-27
 */
@MyBatisMapper
public interface PurchaseOrderMapper extends BaseMapper<PurchaseOrder> {

    /**
     * 查询卖出价格以上的买入订单
     * @param purchaseOrder
     * @return
     */
    List<PurchaseOrder> findStandardPurchaseList(PurchaseOrder purchaseOrder);

    List<PurchaseOrder> findLimitList(PurchaseOrder purchaseOrder);

    void revokeOrders();

    List<PurchaseOrder> findLimitByPriceList(PurchaseOrder purchaseOrder);
}